package com.burns.rbac.commons.exception;

import com.burns.rbac.enums.UserTokenExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * token为空异常
 */
@Data
public class TokenIsNullException extends BusinessException{

    public TokenIsNullException(String code, String msg) {
        super(code, msg);
    }

    public TokenIsNullException(UserTokenExceptionEnum utee) {
        super(utee.getCode(), utee.getMsg());
    }
}
